import { defineStore } from "pinia";
import { $feeBalance, $feeAdd } from "@/api/index.js";
export const feeInfoStore = defineStore("info", {
  state: () => {
    return {
      balance: 0,
    };
  },
  actions: {
    getBalance() {
      $feeBalance().then((res) => {
        this.balance = res.data.balance;
      });
    },
    addFee(data) {
      $feeAdd(data).then((res) => {});
    },
  },
});
